// body-parser
const express = require('express');
const app = express();

//第三方中间件
const parser = require('body-parser');


app.use(parser.urlencoded({ extended: false }));
app.use(parser.json());
app.post('/book', (req, res) => {
    console.log(req.body);
    res.send('获取成功');
});


//启动服务器
app.listen(80, function() {
    console.log('http://127.0.0.1');
})